package com.kx.center.enumerate;

public enum OrderStatus {

	INVALID("无效", 0),
	APPROVAL_PENDING("等待审核", 1),
	APPROVED("审核通过", 2),
	DISAPPROVED("审核未通过", 3),
	PAYMENT_SUCCESS("付款成功，待发货", 4),
	PAYMENT_FAILURE("付款失败", 5),
	IS_DELIVER("已发货", 6),
	IS_RECEIPT("已收货", 7),
	NONE(null, null);

	private String name;
	private Integer value;
	
	OrderStatus(String name, Integer value){
		this.name = name;
		this.value = value;
	}
	
	@Override
	public String toString(){
		return String.valueOf(this.value);
	}
	
	public String getName(){
		return this.name;
	}
	
	public void setName(String name){
		this.name = name;
	}
	
	public Integer getValue(){
		return this.value;
	}
	
	public void setValue(Integer value){
		this.value = value;
	}
}
